package com.jenings.shop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

@TableName("gg")
public class Notice {
    @TableId(value = "gg_id",type = IdType.AUTO)
    private Integer ggId;
    private String ggNr;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    private Date ggTime;
    private Integer glyId;

    public Integer getGgId() {
        return ggId;
    }

    public void setGgId(Integer ggId) {
        this.ggId = ggId;
    }

    public String getGgNr() {
        return ggNr;
    }

    public void setGgNr(String ggNr) {
        this.ggNr = ggNr;
    }

    public Date getGgTime() {
        return ggTime;
    }

    public void setGgTime(Date ggTime) {
        this.ggTime = ggTime;
    }

    public Integer getGlyId() {
        return glyId;
    }

    public void setGlyId(Integer glyId) {
        this.glyId = glyId;
    }

    @Override
    public String toString() {
        return "Notice{" +
                "ggId=" + ggId +
                ", ggNr='" + ggNr + '\'' +
                ", ggTime=" + ggTime +
                ", glyId=" + glyId +
                '}';
    }
}
